/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.ui.controls;

import ac.ui.utils;
import ac.uitls.propertiesOperation;
import java.awt.ComponentOrientation;
import javax.swing.JPanel;/*
import javax.media.MediaLocator;
import javax.media.Player;*/

/**
 *`
 * @author empcl_000
 */
public class PCLvideoPlyer extends JPanel {

    ac.ui.utils u = new ac.ui.utils();
    propertiesOperation op = new propertiesOperation();
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public PCLvideoPlyer() {
        //setBorder(javax.swing.BorderFactory.createEtchedBorder());

    }

    protected void onLoad() {

        if (op.getProperty("lang").equals("ar")) {
            applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        }
        u.updateComponents(getComponents());
    }

    void play() {

    /*    MediaPlayer mediaPanel = new MediaPlayer(mediaUrl);

        mediaTest.add(mediaPanel);

        mediaTest.setSize(800, 700); // set the size of the player

        mediaTest.setLocationRelativeTo(null);

        mediaTest.setVisible(true);*/
    }
}
